package com.chunfen.wx.wa.config.prop;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Getter
@Setter
@Component
@ConfigurationProperties(prefix="spring.dubbo")
public class DubboProp {

    private boolean init;
    private boolean check;
    private String appVersion;

    private String zkAddress;
    private String applicationName;

    private DbInfoRequest dbInfoRequest;
    private ItemSearch itemSearch;

    @Setter
    @Getter
    public static class DbInfoRequest{
        private String version;
    }

    @Setter
    @Getter
    public static class ItemSearch{
        private String version;
        private int retries;
        private int timeout;
    }
}
